<?php

/**
 * MedioVideo form.
 *
 * @package    hipermedio
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class MedioVideoForm extends BaseMedioVideoForm
{
  public function configure()
  {
      unset($this['created_at'], $this['updated_at']);
      $this->widgetSchema['nodo_id'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['opcion'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['busqueda_youtube'] = new sfWidgetFormInputHidden();
      $this->widgetSchema['pie']->setAttribute('size', '60');
      
      $this->widgetSchema['fuente'] = new sfWidgetFormInputFile(array(
          'label' => 'Insertar video',
        ));
      
      $this->validatorSchema['fuente'] = new sfValidatorFile(array(
          'required'   => false,
          'path'       => sfConfig::get('sf_upload_dir').'/videos'
        ));
  }
}
